package day4.作业1026.作业06;

public class Car {
    private String color;
    private String carNo;

    public Car() {
    }

    public Car(String color, String carNo) {
        this.color = color;
        this.carNo = carNo;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }
    public void qidong(){
        System.out.println("启动");
    }
    public void jiashu(){
        System.out.println("加速");
    }
    public void shache(){
        System.out.println("刹车");
    }
}
